home *** CD-ROM | disk | FTP | other *** search
- public class EffectDiscBloodOfPotency extends Codex {
- private int padGuid;
-
- public void EndEffect(int targetGuid) {
- CodexThing pad = new CodexThing(this.padGuid);
- pad.Remove();
- CodexActor _Creator = new CodexActor(targetGuid);
- ((CodexThing)_Creator).EndShell();
- _Creator.RemoveActorEffect("ef_disc_bloodofpotency2");
- }
-
- public void restore(int flags) {
- this.padGuid = CodexSequence.RestoreInt();
- }
-
- public void effectstarted(int actorGuid, int effectGuid, int creatorGuid, int duration) {
- CodexActor _Creator = new CodexActor(creatorGuid);
- ((CodexThing)_Creator).SpawnThing("redMagic");
- ((CodexThing)_Creator).SetShell("redCloudShell", 4096, 0.0F, 0.3F, 1.0F, 1.0F);
- this.padGuid = ((CodexThing)_Creator).SpawnThing("ankhsPadRed");
- float[] offset = new float[3];
- offset[0] = offset[1] = offset[2] = 0.0F;
- ((CodexThing)_Creator).AttachThing(this.padGuid, -1, offset, 1);
- ((Codex)this).CaptureThing(creatorGuid);
- }
-
- public void killed(int guid, int causeID, int captureID) {
- this.EndEffect(guid);
- }
-
- public void save(int flags) {
- CodexSequence.SaveInt(this.padGuid);
- }
-
- public void effectended(int actorGuid, int effectGuid, int creatorGuid, int reason) {
- this.EndEffect(actorGuid);
- }
- }
-